package com.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class MySqlUtil
{
    public static Connection getConn()
    {
    	Connection conn = null;
    	
    	try
		{
			Class.forName("com.mysql.jdbc.Driver");

			conn =
					DriverManager.getConnection("jdbc:mysql://localhost:3306/exam", "root", "wwh1122331996a");
			
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
    	
    	return conn;
    }
}
